﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using System.ComponentModel;

namespace GlassStore.Models
{
  [MetadataType(typeof(SubCatalogueMetaData))]
  public partial class SubCatalogue
  {
    [Bind(Exclude = "SubCatalogueId")]
    public class SubCatalogueMetaData
    {
      [ScaffoldColumn(false)]
      public object SubCatalogueId { get; set; }
      [ScaffoldColumn(false)]
      public object TopCatalogueId { get; set; }

      [Required(ErrorMessage = "二级目录名称不能为空")]
      [DisplayName("目录名")]
      [StringLength(50, ErrorMessage = "目录名最多50字符")]
      public object Name { get; set; }

      [DisplayName("描述")]
      [StringLength(255, ErrorMessage = "目录描述最多255字符")]
      public object Description { get; set; }

      [DisplayName("图片")]
      [StringLength(255)]
      public object PictureURL { get; set; }

    }
  }
}